package ui.asistent;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import java.awt.Color;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.table.DefaultTableModel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JSeparator;
import javax.swing.JComboBox;

public class VizualizareAsistati extends JPanel {
	private JTable table;

	
	public VizualizareAsistati() {
		
		setBorder(null);
		setBackground(new Color(240, 255, 255));
		setBounds(100, 100, 923, 515);
		setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(57, 30, 797, 258);
		add(scrollPane);
		
		table = new JTable();
		table.setFont(new Font("Arial", Font.PLAIN, 14));
		table.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Nume", "Prenume", "CNP", "Venit", "Grad de dependenta", "Handicap", "Telefon"
			}
		) {
			Class[] columnTypes = new Class[] {
				String.class, String.class, String.class, String.class, String.class
			};
			public Class getColumnClass(int columnIndex) {
				return columnTypes[columnIndex];
			}
		});
		scrollPane.setViewportView(table);
		
		JButton btnNewButton = new JButton("Sterge");
		btnNewButton.setFont(new Font("Arial", Font.PLAIN, 14));
		btnNewButton.setBounds(516, 356, 124, 29);
		add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Editeaza");
		btnNewButton_1.setFont(new Font("Arial", Font.PLAIN, 14));
		btnNewButton_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
			}
		});
		btnNewButton_1.setBounds(337, 406, 124, 29);
		add(btnNewButton_1);
		
		JButton btnCautaAsistent = new JButton("Cauta");
		btnCautaAsistent.setFont(new Font("Arial", Font.PLAIN, 14));
		btnCautaAsistent.setBounds(337, 356, 124, 29);
		add(btnCautaAsistent);
		
		JLabel lblCnp = new JLabel("Cautare:");
		lblCnp.setFont(new Font("Arial", Font.BOLD, 14));
		lblCnp.setBounds(57, 322, 76, 14);
		add(lblCnp);
		
		JSeparator separator = new JSeparator();
		separator.setForeground(new Color(105, 105, 105));
		separator.setBackground(new Color(95, 158, 160));
		separator.setBounds(57, 338, 590, 23);
		add(separator);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(57, 357, 219, 20);
		add(comboBox);
		
		JButton btnNewButton_2 = new JButton("Evalueaza");
		btnNewButton_2.setFont(new Font("Arial", Font.PLAIN, 14));
		btnNewButton_2.setBounds(516, 406, 124, 29);
		add(btnNewButton_2);

	}
}
